<?php
namespace Admin\Controller;

use Admin\Forms\LoginForm;
use Zend\Mvc\Controller\AbstractActionController;

class IndexController extends AbstractActionController{

    public function indexAction(){
        $loginForm=new LoginForm();
        $loginForm->setAttribute('action',$this->url()->fromRoute('admin',array('action'=>"login")));
        return array('form'=>$loginForm);
    }

    public function loginAction(){
     $requ=$this->getRequest();
      if($requ->isPost()){
          $data=$requ->getPost()->toArray();
          var_dump($data);
          


      }



    }


}
